// pages/payCartSuccess/payCartSuccess.js
import {
  HTTP
} from '../../../utils/http.js'
import api from '../../../utils/api.js'
import { config } from '../../../utils/config'
const http = new HTTP()
const app = getApp();

Page({

    /**
     * 页面的初始数据
     */
    data: {
        // 此页面 页面内容距最顶部的距离
        imgUrl: config.imgUrl,
    },
    

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function(options) { 
        let order_no = options.order_no
        this.setData({
          order_no
        })
       
        // this.compareVegetables();

        // // 展示 推荐 商品
        // this._recommendProducts();
    },
    goDetail(){
      wx.navigateTo({
        url: '/pages/pointsMall/orderDetail/orderDetail?order='+this.data.order_no
      })
    },

    goOrderList(){
      wx.navigateTo({
        url: "/pages/pointsMall/orderList/orderList"
      })
    },
    backIndex(){
      wx.navigateBack({
        delta : 2
      })
    },
    // 购物添加的单品 与 已购买的 单品
    

  
})